package com.bootdo.repertory.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.repertory.dao.RgoodsDao;
import com.bootdo.repertory.domain.RgoodsDO;
import com.bootdo.repertory.service.RgoodsService;



@Service
public class RgoodsServiceImpl implements RgoodsService {
	@Autowired
	private RgoodsDao rgoodsDao;
	
	@Override
	public RgoodsDO get(Integer id){
		return rgoodsDao.get(id);
	}
	
	@Override
	public List<RgoodsDO> list(Map<String, Object> map){
		return rgoodsDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return rgoodsDao.count(map);
	}
	
	@Override
	public int save(RgoodsDO rgoods){
		return rgoodsDao.save(rgoods);
	}
	
	@Override
	public int update(RgoodsDO rgoods){
		return rgoodsDao.update(rgoods);
	}
	
	@Override
	public int remove(Integer id){
		return rgoodsDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return rgoodsDao.batchRemove(ids);
	}
	
}
